<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div style='display: none'>
    <form id='period-data' method='post' action='#'>
        <input type='text' name='debut' value='<?php echo $this->debut; ?>'>
        <input type='text' name='fin' value='<?php echo $this->fin; ?>'>
        <input type='text' name='periode_id' value='<?php echo $this->id; ?>'>
    </form>
</div>
Période généré (#<?php echo $this->id; ?>)<br>
<script type='text/javascript'>
    $(document).ready(function(){
        ajaxLoad('<?php echo $this->url('GRH/default', array('controller' => 'periode', 'action' => 'generateweek')); ?>', 'semaine', 'period-data');
    });
</script>